# -*- coding: utf-8 -*-
"""
Created on Sun Apr 21 12:27:30 2019

@author: LENOVO
"""

filename = 'pi_digits.txt'
with open(filename) as file_object:
    lines = file_object.readlines()
    pi_string = ''
    for line in lines:
        pi_string += line.rstrip()
    print(pi_string)
    print(len(pi_string))